package day07_Array;
//public StringBuilder append(任意类型)	   添加数据并返回对象本身
//public StringBuilder reverse()        返回相反的字符序列

public class Demo03_StringBuilder {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder("abcd");
        sb.append("efg");
        System.out.println(sb);//添加数据并返回对象本身

        StringBuilder sb1 = new StringBuilder("123456");
        sb1.reverse();
        sb1.append("789");
        System.out.println(sb1);

    }
}
